package io.renren.modules.app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.app.dao.CarouselAdvertisingDao;
import io.renren.modules.app.entity.CarouselAdvertisingEntity;
import io.renren.modules.app.service.CarouselAdvertisingService;



@Service("carouselAdvertisingService")
public class CarouselAdvertisingServiceImpl implements CarouselAdvertisingService {
	@Autowired
	private CarouselAdvertisingDao carouselAdvertisingDao;
	
	@Override
	public CarouselAdvertisingEntity queryObject(Long id){
		return carouselAdvertisingDao.queryObject(id);
	}
	
	@Override
	public List<CarouselAdvertisingEntity> queryList(Map<String, Object> map){
		return carouselAdvertisingDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return carouselAdvertisingDao.queryTotal(map);
	}
	
	@Override
	public void save(CarouselAdvertisingEntity carouselAdvertising){
		carouselAdvertisingDao.save(carouselAdvertising);
	}
	
	@Override
	public void update(CarouselAdvertisingEntity carouselAdvertising){
		carouselAdvertisingDao.update(carouselAdvertising);
	}
	
	@Override
	public void delete(Long id){
		carouselAdvertisingDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		carouselAdvertisingDao.deleteBatch(ids);
	}
	
}
